<div class="box640">
	<?php if ( ! empty($error_string)):?>
	<div class="error-box" style="background-color: black">
		<?php echo $error_string;?>
	</div>
	<?php endif;?>
	<div class="hard-left">
		<span>Đăng Nhập</span>
	</div>
	<div class="clear"></div>
	<div class="sub-content">
		<div><h3 style="color:#ff0000; text-align:center;"></h3></div>
	
		<div style="text-align:left; padding:5px 5px 5px 5px;">
				<?php echo form_open('users/login', array('id'=>'login'), array('redirect_to' => $redirect_to)); ?>
				<table align="left">
					<tbody><tr>
						<td width="150"><label>Email</label></td>
						<td><input type="text" name="email" maxlength="100" value="<?php echo $_user->email ?>" /></td>
					</tr>
					<tr>
						<td><label>Mật khẩu</label></td>
						<td><input type="password" name="password" maxlength="100" /></td>
					</tr>
					<tr>
						<td><label>Bảo mật</label></td>
						<td><?php echo $captcha['image'];?><input type="text" name="captcha" style="margin-left: 5px" maxlength="50" size="7"></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
					<tr>
						<td colspan="2" align="right"><a href="{{ url:site uri='users/reset_pass' }}" class = "b_link">Quên mật khẩu</a><a>&nbsp;|&nbsp;</a><a href="{{ url:site uri='register' }}" class = "b_link">Đăng ký tài khoản</a></td>
					</tr>
					<tr>
						<td></td>
						<td><input type="submit" title="Đăng Nhập" value="Đăng nhập" id="submit" class="submit" name="submit"></td>
					</tr>
					
				</tbody></table>
				
			<?php echo form_close() ?><br class="spacer">
		</div>
		
	</div>
	<div class="bottom-left"></div>
</div>
        
